package com.dfrz.ch05.task;

import com.sun.org.apache.xerces.internal.impl.xs.SchemaNamespaceSupport;

import java.util.Scanner;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/12 14:16
 * 描述:
 */
public class Task02 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入你要打印的行数");
        int i=scanner.nextInt();
        if (i<0){
            System.out.println("数字必须大于0");
            return;
        }

        for (int j=1;j<=i;j++){  //输出行数

            System.out.print("1"+"\t");

            int z=j-1;

            for (int zz=z;zz>0;zz--){
                System.out.print(zz +"\t");
            }

            System.out.println("");


        }


    }
}
